package com.shundr.shipper.base;

import android.app.Application;

import com.baidu.batsdk.BatSDK;
import com.shundr.shipper.common.util.CrashHandler;
import com.shundr.shipper.common.util.LImageLoader;
import com.shundr.shipper.common.util.NetworkUtil;
import com.shundr.shipper.frame.util.LLoader;
import com.shundr.shipper.frame.util.LLogger;

/**
 * 基类应用
 * BaseApplication
 * 
 * @author larry 2015-5-19 下午5:06:01 
 * @version 1.0.0
 *
 */
public class BaseApplication extends Application {

	@Override
	public void onCreate() {
		super.onCreate();
		LLoader.initApp(getApplicationContext());//初始化应用信息
		BatSDK.init(this, "25827f58435432d7");//百度异常日志捕获
		LImageLoader.initConfig(getApplicationContext());
		NetworkUtil.checkNetworkStatus(getApplicationContext());
		CrashHandler.getInstance().init(getApplicationContext());//全局捕获异常
		LLogger.isDebug = false;//false 禁止打印log
	}

}
